package com.dhcc.bpm.modules.orga.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.mp.base.BaseEntity;

import java.util.Date;

/**
 * @ClassName AppApi
 * @Description 应用API关系表实体类
 * @Author daina
 * @Date 2020/2/24 19:25
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_app_api")
@ApiModel(value = "AppApi对象", description = "应用API关系表")
public class AppApi extends BaseEntity {

    private static final long serialVersionUID = 1L;

//    /**
//     * 编号
//     */
//    @ApiModelProperty(value = "编号")
//    @TableId(value = "id", type = IdType.AUTO)
//    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
//    private Long id;
    /**
     * 应用ID (关联opc_app表ID)
     */
    @ApiModelProperty(value = "应用ID (关联opc_app表ID)")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long opcAppId;
    /**
     * 产品ID
     */
    @ApiModelProperty(value = "产品ID")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long opcProductId;
    /**
     * APIID (关联opc_api表ID)
     */
    @ApiModelProperty(value = "APIID (关联opc_api表ID)")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long opcApiId;
    /**
     * 审批状态 (审批状态1，通过，0未通过（门户初始化值为0）)
     */
    @ApiModelProperty(value = "审批状态 (审批状态1，通过，0未通过（门户初始化值为0）)")
    private String validStatus;
    /**
     * 通知状态（1：未通知，2：已通知）
     */
    @ApiModelProperty(value = "通知状态")
    private String noticeStatus;
    /**
     * 确认状态（1：未确认，2：已确认）
     */
    @ApiModelProperty(value = "确认状态")
    private String confirmStatus;
    /**
     * 通知时间
     */
    @ApiModelProperty(value = "通知时间")
    private Date noticeTime;
    /**
     * 请求ids
     */
    @ApiModelProperty(value = "请求ids")
    private String requestMessage;
    /**
     * 响应ids
     */
    @ApiModelProperty(value = "响应ids")
    private String responseMessage;
    /**
     * 导出数据标识
     */
    @ApiModelProperty(value = "导出数据标识")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private String expSeq;
    /**
     * 渠道变更状态(1:新增,2:移除,3:不变)
     */
    @ApiModelProperty(value = "变更状态")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private String changeStatus;
    /**
     * 审批环境(1:生产,2:沙箱)
     */
    @ApiModelProperty(value = "审批环境(1:生产,2:沙箱)")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private String approvalEnv;
}
